<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0">
<link href="${domain}/static/style/style.css" rel="stylesheet" type="text/css">
<title>${article.title} - zhengqiang's blog</title>
</head>
<body>

<jsp:include page="/WEB-INF/views/include/header.jsp" />
<jsp:include page="/WEB-INF/views/include/nav.jsp"><jsp:param name="curr" value="blog" /></jsp:include>
<div class="main">
	<div class="main_content">
		<div class="entry">
			<div class="title">
				<h1><a href="${domain}/blog/article/${article.id}">${article.title}</a></h1>
			</div>
			<div class="tags">
				<ul>
					<c:forEach items="${article.tags}" var="tag"><li><a href="${domain}/blog/tag/${tag.name}">${tag.name}</a></li></c:forEach>
				</ul>
			</div>
			<div class="overview2">${article.overview}</div>
			<div class="content">${article.content}</div>
			<div class="info">
				<ul>
					<li class="info_author">${article.author}</li>
					<li class="info_category">${article.category.name}</li>
					<li class="info_time"><fmt:formatDate value="${article.postDate}" pattern="yyyy-MM-dd" /></li>
					<li class="info_views">${article.views}</li>
				</ul>
			</div>
		</div>
	</div>
	<jsp:include page="/WEB-INF/views/include/sidebar.jsp" />
</div>
<jsp:include page="/WEB-INF/views/include/footer.jsp" />
</body>
</html>